from crewai import Agent,LLM




llm = LLM(
    model="ollama/qwen3:4b", # 模型名字前加ollama
    base_url="http://localhost:11434" # ollama服务地址,ollama默认端口号是11434
)


agent = Agent(
    role="助手",
    goal="与用户聊天",
    backstory="友善的助手",
    llm = llm
)

r = agent.kickoff('3+2等于多少')
print(r)
